export default class home extends Laya.Script {
    // 更多参数说明请访问: https://ldc2.layabox.com/doc/?nav=zh-as-2-4-0
    
    constructor() { super(); }
    onAwake(){
        Laya.stage.on(Laya.Event.CLICK,this,this.dianji)
    }   
     dianji(){
         if(Laya.stage.mouseX<Laya.stage.width/2){
             Laya.stage.event("zuo")
         }
         else{
            Laya.stage.event("you")
         }
     }
}